package mail.auth;

import javax.mail.Authenticator;
import javax.mail.PasswordAuthentication;

public class CustomAuthenticator extends Authenticator {
    private String name;
	private String email;
    private String password;
    
    public CustomAuthenticator(String name, String email, String password) {
        this.name = name;
    	this.email = email;
        this.password = password;
    }
    
    protected PasswordAuthentication getPasswordAuthentication() {
        return new PasswordAuthentication(email, password);
    }
    
    public String getName() { return name; }
    public String getEmail() { return email; }
    public String getPassWord() { return password; }
}
